import 'package:flutter/material.dart';
import 'package:zhongyiapp/pages/literature/literature_page.dart';
import 'package:zhongyiapp/pages/study/study_page.dart';
import 'package:zhongyiapp/pages/ai_diagnosis/ai_diagnosis_page.dart';
import 'package:zhongyiapp/pages/forum/forum_page.dart';
import 'package:zhongyiapp/pages/profile/profile_page.dart';
import 'package:zhongyiapp/pages/main/main_page.dart';

class AppRoutes {
  static const String initial = '/';
  static const String main = '/main';
  static const String literature = '/literature';
  static const String study = '/study';
  static const String aiDiagnosis = '/ai_diagnosis';
  static const String forum = '/forum';
  static const String profile = '/profile';

  static Map<String, WidgetBuilder> get routes => {
        initial: (context) => const MainPage(),
        main: (context) => const MainPage(),
        literature: (context) => const LiteraturePage(),
        study: (context) => const StudyPage(),
        aiDiagnosis: (context) => const AiDiagnosisPage(),
        forum: (context) => const ForumPage(),
        profile: (context) => const ProfilePage(),
      };
}
